package com.yao.club.entity.dto;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.time.Instant;

@Getter
@Setter
@Entity
@Table(name = "goods_attr")
public class GoodsAttr {
    @Id
    @Column(name = "id", nullable = false)
    private Long id;

    @Column(name = "goods_id", nullable = false)
    private Long goodsId;

    @Column(name = "attr_key", nullable = false)
    private String attrKey;

    @Column(name = "attr_key_id")
    private Long attrKeyId;

    @Column(name = "is_show_pic")
    private Boolean isShowPic;

    @Column(name = "create_time")
    private Instant createTime;

    @Column(name = "update_time")
    private Instant updateTime;

}